package py.com.alfa.escriba.gui.rest.services;

import java.io.IOException;
import java.util.List;

import py.com.alfa.escriba.gui.dto.gestion.TemplatesDTO;

public interface TemplatesService {
	final String SECURE_PATH = "/secure";
	final String BASE_URL = "/templates";

	final String LIST_TEMPLATE = SECURE_PATH.concat(BASE_URL);
	final String MB_TEMPLATE = SECURE_PATH.concat(BASE_URL.concat("/{id}"));
	final String TEMPLATE_BY_TIPO = SECURE_PATH.concat(BASE_URL.concat("/listTemplatesByIdTipo/{id}"));
	
	public List<TemplatesDTO> listTemplates() throws IOException;

	public TemplatesDTO showTemplates(Long id) throws IOException;

	public List<TemplatesDTO> listTemplatesByIdTipo(Long id) throws IOException;
	  
	public TemplatesDTO saveTemplates(TemplatesDTO dto) throws IOException;

	public TemplatesDTO createTemplates(TemplatesDTO dto) throws IOException;

	public void deleteTemplates(Long id) throws IOException;

}